<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>支付表提前结清选择期数页面</title>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>
<body class="iframeBody">
<div class="Wrapper">
    <div id="pageInTab" class="pageInTab">
        <form id="formSet1">
            <div class="fieldset1 tabel_col clearFix">
                <div class="fieldBox col_50">
                    <div class="label">融资租赁合同号</div>
                    <div class="field">
                        <span>${prj.lsCntNo}</span>
                        <input name="paySchId" id="paySchId" type="hidden" class="ui-textbox" value="${paySchId}">
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">承租人</div>
                    <div class="field">
                        <span>${prj.cstNm }</span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">支付表号</div>
                    <div class="field">
                        <span>${paySchNo}</span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">结清方式</div>
                    <div class="field">
                        <span id="settleWay" name="settleWay">提前结清</span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">开始期次</div>
                    <div class="field">
                        <select id="startLsPd">
                            <c:forEach begin="${startLsPd}" end="${payPd}" step="1" var="pd">
                                <option value="${pd}"
                                        <c:if test="${pd==defStartLsPd}"> selected="selected"</c:if>
                                >第${pd}期
                                </option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
            </div>
            <div class="btnsBox">
                <span id="showBtn1" class="sq-button sq-button-round">预览</span>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    var paySchId = '${paySchId}';
    $(function () {
        $('#formSet1').ligerForm({
            validate: true
        });
    });

    $("#showBtn1").click(function () {
        var startLsPd = $("#startLsPd").val();
        var zckcFlag = '${zckcFlag}';
        if (zckcFlag == 1) {
            Add_navTab('tab_prj_quat_prps_pre_sett_choose' + paySchId, '支付表提前结清信息详情', '<%=path%>/project/prjprdpayschm/showZCCarPreSettlePage.do?paySchId=' + paySchId + '&&payPd=' + startLsPd);
        } else {
            Add_navTab('tab_prj_quat_prps_pre_sett_choose' + paySchId, '支付表提前结清信息详情', '<%=path%>/project/prjprdpayschm/showPreSettlePage.do?paySchId=' + paySchId + '&&payPd=' + startLsPd);
        }
    });

</script>


</body>
</html>
